#include "Graphics/IRenderTarget.h"
#include "Graphics/IViewport.h"

namespace tyro
{
	namespace Graphics
	{

		void IRenderTarget::swapBuffers()
		{

		}

		tyro::UINT_32 IRenderTarget::getHeight( void ) const
		{
			return height;
		}

		tyro::UINT_32 IRenderTarget::getWidth( void ) const
		{
			return width;
		}

		tyro::UINT_32 IRenderTarget::getColourDepth( void ) const
		{
			return colourDepth;
		}

		void IRenderTarget::UpdateViewport( IViewport* viewport )
		{
			viewport->Update();
		}

		void IRenderTarget::Update()
		{
			UpdateViewport(activeViewport);
		}

		IViewport* IRenderTarget::AddViewport( Camera::Camera* cam, int ZOrder, float left, float top , float width , float height )
		{
			IViewport* viewport = new IViewport(cam,this, left, top, width, height);
			activeViewport = viewport;
			return viewport;
		}

		

		


	}
}